/*    file: AacPackager.h
 *    desc:
 *   
 * created: 2014-07-21 15:24:42
 *  author: zhengchuanjiang
 * company: 
 */ 


#if !defined AACPACKAGER_H_
#define AACPACKAGER_H_

#include "BasicType.h"
#include <Windows.h>
#include <stdio.h>
#include "comn/TByteBuffer.h"
////////////////////////////////////////////////////////////////////////////
class AacPackager
{
public:
    AacPackager();
    ~AacPackager();

    bool open(int profile, int freq, int channels, const char* filename);
    bool isOpen();
    void close();
    
    void write(BYTE* ptr, UINT16 length);

protected:
    FILE*   m_file;
    comn::ByteBuffer m_buffer;

	int m_profile;
	int m_freq;
	int m_channels;

};

////////////////////////////////////////////////////////////////////////////
#endif //AACPACKAGER_H_

